class First
 {
	public static void main(String[] args)
         {

	//Area of circle
	double radius;
	double area;
	final double PI=3.14159;
	//radius=20;
	System.out.println(radius=20);
	area=radius*radius*PI;
	System.out.println("The area of radius "+radius+" is "+area); 
	
//Addition of two numbers 
//Addition of three numbers
	int a;
	int b;
	int c;
	int sum_of_2;
	int sum_of_3;
	a=5;
	b=6;
	c=7;
	sum_of_2=a+b;
	sum_of_3=a+b+c;


	System.out.println("\n\nThe Sum of "+a+"+"+b+"="+sum_of_2);
	System.out.println("The Sum of "+a+"+"+b+"+"+c+"="+sum_of_3);

//Page 26
	double A=1.0;
	System.out.println("\n\n A="+A);
	System.out.println(A+"-0.1= "+(A-=0.1));

	System.out.println(0.9+"-0.1= "+(.9-0.1));

	System.out.println(A+"-0.1= "+(A-=0.1));
	System.out.println(A+"-0.1= "+(A-=0.1));
	System.out.println(A+"-0.1= "+(A-=0.1));
	System.out.println(A+"-0.1= "+(A-=0.1));	
	
	
	
	System.out.println(1.0-0.1-0.1-.1-.1-.1);

//Page 27
	System.out.println("\n\n 1.0/3.0 is "+ 1.0/3.0);
	System.out.println("1.0f/3.0f is "+ 1.0f/3.0f);

//page 28
	double fahrenheit = 100;
	double celsius = (5.0 / 9) * (fahrenheit-32);
	System.out.println("\n\nFahrenheit "+ fahrenheit + " is " + celsius +
	 " in Celsius");

//page 30	
	byte i = 100;
	long k = i * 3 + 4;
	double d = i * 3.1 + k / 2;
	System.out.println("\n\n" + i);
	System.out.println(k);	
	System.out.println(d);


	float f = 10.1f;
	System.out.println(f);


	System.out.println("Hello \"Java\" and \'is Case Sensitive\'\\");
	

	char g = (char)0XAB0041;
	System.out.println(g);

	char e = (char)65.25;
	System.out.println(e);	

	int ii = (int)'A';
	System.out.println(ii);


	String msg = "Welcome" + "to" + "Java";
	
	String s = "Chapter" + 2;

	String s1 = "Supplement" + 'B';
	
	System.out.println(msg);
	System.out.println(s);
	System.out.println(s1);
    }

}